package org.tourism.service;

import org.tourism.entity.Room;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wuling
 * @since 2024-07-05
 */
public interface RoomService extends IService<Room> {
    //返回值为int类型的函数，返回1时代表插入成功，0代表失败
    int addRoom(Room room);

    int updateRoom(Room room);

    //int deleteRoom(Room room);
    int deleteRoomById(int id);

    Room getRoomById(int id);

    List<Room> getAllRooms();
}
